package com.qtummatrix.controller;

import com.opensymphony.xwork2.ActionSupport;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

/**
 * Description: 马鹏鑫
 * Created by 86176 on 2019/12/3 11:09
 */
public class Down extends ActionSupport {
        private InputStream inputStream;
        private String fileName;

        public InputStream getInputStream() {
            return inputStream;
        }

        public String getFileName() {
            return fileName;
        }

        public String down() throws FileNotFoundException {
            fileName = "贷款合同.doc";
            String path = "D:/word"+fileName;
            inputStream = new FileInputStream(path);
            return SUCCESS;
        }
    }

